aboutdialog: Fix updating license tab
authorMatthias Clasen <mclasen@redhat.com>
Tue, 6 Oct 2020 16:53:46 +0000 (12:53 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 6 Oct 2020 16:53:46 +0000 (12:53 -0400)
We need to update the license button visibility
whenever the license type changes.

gtk/gtkaboutdialog.c

index f3304fce2ce37c97263eda796380f68d5089a660..ce5c8efb785ed9aad2ac7cc01a1926ceb4597b84 100644 (file)
@@ -2378,8 +2378,6 @@ gtk_about_dialog_set_license_type (GtkAboutDialog *about,
           g_free (license_string);
           gtk_widget_show (about->license_label);
 
-          update_license_button_visibility (about);
-
           g_object_notify_by_pspec (G_OBJECT (about), props[PROP_WRAP_LICENSE]);
           g_object_notify_by_pspec (G_OBJECT (about), props[PROP_LICENSE]);
         }
@@ -2388,6 +2386,8 @@ gtk_about_dialog_set_license_type (GtkAboutDialog *about,
           gtk_widget_show (about->license_label);
         }
 
+      update_license_button_visibility (about);
+
       g_object_notify_by_pspec (G_OBJECT (about), props[PROP_LICENSE_TYPE]);
 
       g_object_thaw_notify (G_OBJECT (about));